import type { App } from 'vue'
import { Icon } from './Icon'
import RightToolbar from './RightToolbar/index.vue'
import * as components from '@element-plus/icons-vue'

export const setupGlobCom = (app: App<Element>): void => {
  app.component('Icon', Icon)
  app.component('RightToolbar', RightToolbar)

   for (const key in components) {
            const componentConfig = components[key];
            app.component(componentConfig.name, componentConfig);
        }
}



